package com.lagou.mvc.demo;

import com.lagou.mvc.framework.annotation.Controller;
import com.lagou.mvc.framework.annotation.RequestMapping;
import com.lagou.mvc.framework.annotation.Security;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName TestController
 * @Description
 * @Author playboy
 * @Date 2021/4/29 5:38 下午
 * @Version 1.0
 **/
@Controller
@RequestMapping("/demo")
@Security({"zhangsan", "lisi", "wangwu", "zhaoliu"})
public class TestController {


	@RequestMapping("/handle01")
	@Security({"qinbaobao"})
	public void handle01(HttpServletResponse response) {
		try {
			response.getWriter().write("访问成功");
			//response.getWriter().write("当前用户" + username + "的密码" + password);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
